﻿using System;
using System.Collections.Generic;
using Assets.Scripts.GtsScripts;

namespace SaveDataStructures
{
	// Token: 0x02000357 RID: 855
	[Serializable]
	public class GiantessData : EntityData
	{
		// Token: 0x06001628 RID: 5672 RVA: 0x00090098 File Offset: 0x0008E298
		public GiantessData(Giantess giantess) : base(giantess)
		{
			this.animation = new AnimationData(giantess);
			this.behavior = giantess.ai.behaviorController.GetCurrentBehaviorName();
			this.useAltShaders = giantess.useAltShaders;
			this.useAltTangents = giantess.useAltTangents;
			List<MorphData> list = new List<MorphData>();
			MorphData morphData = new MorphData();
			for (int i = 0; i < giantess.Morphs.Length; i++)
			{
				float weight = giantess.Morphs[i].Weight;
				if (weight > 0f)
				{
					list.Add(new MorphData
					{
						index = i,
						value = weight
					});
				}
			}
			this.morphs = list.ToArray();
		}

		// Token: 0x040018DE RID: 6366
		public AnimationData animation;

		// Token: 0x040018DF RID: 6367
		public string behavior;

		// Token: 0x040018E0 RID: 6368
		public MorphData[] morphs;

		// Token: 0x040018E1 RID: 6369
		public bool useAltShaders;

		// Token: 0x040018E2 RID: 6370
		public bool useAltTangents;
	}
}
